Release 10.1A: OpenEdge Development:
Programming Interfaces
4GL to XML Schema data type mappings
Table D–1 shows the default mapping between 4GL data types and XML Schema data types used with the read and write XML methods of temp-tables and ProDataSets. The third column shows the Progress-specific XML Schema data type attribute which is an extension to the basic XML Schema. This attribute is used for Progress 4GL data types that are not the default for the XML Schema data type.
This table contains the most common XML Schema data types and their corresponding Progress 4GL data types.
Note: You have some control over default data type mappings. The
READ-XML( )andREAD-XMLSCHEMA( )methods haveoverride-default-mappingandfield-type-mappingoptions. See Chapter 22 "Reading and Writing XML Using Temp-Tables and ProDataSets" for more information.There are many other XML Schema data types that could appear in an XML Schema definition. Progress maps these data types but also preserves the original XML Schema type in the
XML-DATA-TYPEattribute of the buffer-field object. When theWRITE-XML( )andWRITE-XMLSCHEMA( )methods encounter buffer-fields with these values, they write the original XML Schema data type out to the XML Schema.Table D–2 lists the other XML Schema data types and the 4GL data type they map to.
Table D–2: Other XML Schema types and 4GL data type mappings XML Schema Type (type) Attribute 4GL Type
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |